]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
main: Close runDialog as necessary on session mode changes
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 18 Sep 2013 17:47:59 +0000 (19:47 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 19 Sep 2013 05:53:56 +0000 (07:53 +0200)
We already do this for looking glass, but it makes even less sense
for the normal run dialog - if a mode sets runDialog to false, the
intention is to not allow executing aribitrary commands.

https://bugzilla.gnome.org/show_bug.cgi?id=708218

js/ui/main.js

index bca2b22e5c73fcf89c40545c992204b7f1351582..6f961be7d629d2710b758a47808385a7816a2b15 100644 (file)
@@ -90,8 +90,12 @@ function _sessionUpdated() {
                                   Shell.KeyBindingMode.OVERVIEW,
                                   sessionMode.hasRunDialog ? openRunDialog : null);
 
-    if (!sessionMode.hasRunDialog && lookingGlass)
-        lookingGlass.close();
+    if (!sessionMode.hasRunDialog) {
+        if (runDialog)
+            runDialog.close();
+        if (lookingGlass)
+            lookingGlass.close();
+    }
 }
 
 function start() {